<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import('ViewModel');
class UserOrderViewModel extends ViewModel{
    protected $viewFields = array(
        'Goodsorder'  =>array('id','userid','orderdetail','ordertime','_as'=>'gd', '_type' => 'left'),
        'User'  =>array('username','name','phone','address','_as'=>'u','_on'=>'gd.userid=u.id')
    );
}
?>
